from test.HeroBase import jinx, timo

class Factory:

    def create_hero(self,hero):
        if hero == "jinx":
            return  jinx
        elif hero == "timo":
            return  timo
        else:
            raise  Exception("此英雄不存在")
